package com.itheima.principles.demo3.before;

// 测试类
public class ComputerDemo {
    public static void main(String[] args) {
        Computer computer = new Computer();

        XiJieHardDisk hardDisk = new XiJieHardDisk();
        IntelCpu cpu = new IntelCpu();
        KingstonMemory memory = new KingstonMemory();

        computer.setHardDisk(hardDisk);
        computer.setCpu(cpu);
        computer.setMemory(memory);

        computer.run();
    }
}
